package com.cityeye.form;

import com.cityeye.dao.IssueTypeDao;
import com.cityeye.entity.Issuetype;
import com.cityeye.entity.Subissuetype;

public class IssuetypeForm extends AbsEntityForm<Issuetype> {

	// Fields

	private Integer id;
	private String name;
	private Integer valid=1;

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getValid() {
		return this.valid;
	}

	public void setValid(Integer valid) {
		this.valid = valid;
	}

	public Issuetype toEntity(){
		Issuetype issue = new Issuetype();
		issue.setId(getId());
		issue.setName(getName());
		issue.setValid(getValid());
		
		return issue;
	}

}